import win1271
import numpy as np


green = np.array([0, 200, 0], np.int8)
white = np.array([200, 200, 200], np.int8)
red = np.array([0, 0, 200], np.int8)


memory = np.zeros((600, 800, 4), np.int8)
canvas = memory[::-1, :, 2::-1]      # RGB

canvas[:,:] = green
for i in range(800):
    canvas[i//2, i] = white
for i in range(600):
    canvas[i, i] = red
win1271.blit(memory)
input()

